package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.util.Date;

@Entity
public class Lwxcb {
    private int gdxbId;//工单从表id
    private String gdDh;//联系人电话
    private String gdDizhi;//地址
    private Date gdSpxsrq;//产品销售日期
    private String gdGuzhangmiaoshu;//故障描述
    private String gdZhuyishixiang;//注意事项
    private Double  gdMoney;//维修费用
    private Double  gdYishoumoney;//已收款
    private String gdBeizhu;//备注
    private String gdJdzk;//备注
    private  Lwxzb lwxzb;//维修主表对象

    @ManyToOne
    @JoinColumn(name = "gd_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Lwxzb getLwxzb() {
        return lwxzb;
    }

    public void setLwxzb(Lwxzb lwxzb) {
        this.lwxzb = lwxzb;
    }

    @Id
    @Column(name = "gdxb_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getGdxbId() {
        return gdxbId;
    }

    public void setGdxbId(int gdxbId) {
        this.gdxbId = gdxbId;
    }

    @Basic
    @Column(name = "gd_dh")
    public String getGdDh() {
        return gdDh;
    }

    public void setGdDh(String gdDh) {
        this.gdDh = gdDh;
    }

    @Basic
    @Column(name = "gd_dizhi")
    public String getGdDizhi() {
        return gdDizhi;
    }

    public void setGdDizhi(String gdDizhi) {
        this.gdDizhi = gdDizhi;
    }

    @Basic
    @Column(name = "gd_spxsrq")
    public Date getGdSpxsrq() {
        return gdSpxsrq;
    }

    public void setGdSpxsrq(Date gdSpxsrq) {
        this.gdSpxsrq = gdSpxsrq;
    }

    @Basic
    @Column(name = "gd_guzhangmiaoshu")
    public String getGdGuzhangmiaoshu() {
        return gdGuzhangmiaoshu;
    }

    public void setGdGuzhangmiaoshu(String gdGuzhangmiaoshu) {
        this.gdGuzhangmiaoshu = gdGuzhangmiaoshu;
    }

    @Basic
    @Column(name = "gd_zhuyishixiang")
    public String getGdZhuyishixiang() {
        return gdZhuyishixiang;
    }

    public void setGdZhuyishixiang(String gdZhuyishixiang) {
        this.gdZhuyishixiang = gdZhuyishixiang;
    }

    @Basic
    @Column(name = "gd_money")
    public Double getGdMoney() {
        return gdMoney;
    }

    public void setGdMoney(Double gdMoney) {
        this.gdMoney = gdMoney;
    }

    @Basic
    @Column(name = "gd_yishoumoney")
    public Double getGdYishoumoney() {
        return gdYishoumoney;
    }

    public void setGdYishoumoney(Double gdYishoumoney) {
        this.gdYishoumoney = gdYishoumoney;
    }

    @Basic
    @Column(name = "gd_beizhu")
    public String getGdBeizhu() {
        return gdBeizhu;
    }

    public void setGdBeizhu(String gdBeizhu) {
        this.gdBeizhu = gdBeizhu;
    }

    @Basic
    @Column(name = "gd_jdzk")
    public String getGdJdzk() {
        return gdJdzk;
    }

    public void setGdJdzk(String gdJdzk) {
        this.gdJdzk = gdJdzk;
    }

}
